sketching functions from the derivative